Skip to content

feat: admin events page with cohort filter#9

Merged
AlexVOiceover merged 6 commits intomainfrom
feature/ap-17-admin-calendar-page
Dec 29, 2025
Merged

feat: admin events page with cohort filter#9
AlexVOiceover merged 6 commits intomainfrom
feature/ap-17-admin-calendar-page

Conversation

@AlexVOiceover
Copy link
Contributor

Summary

  • Add admin events page at /admin/events displaying events from Airtable
  • Add cohort filter dropdown with reverse alphabetical sorting
  • Add listCohorts function to Airtable client
  • Add "Add Event" button placeholder (links to AP-18)
  • Document check-in workflow in user stories
  • Add Sprint 2 review documentation

Changes

  • Admin events page (src/routes/admin/events/): Server load function + Svelte page
  • Cohort service (src/lib/airtable/airtable.ts): Added listCohorts() function
  • SvelteKit wrapper: Export listCohorts and Cohort type
  • User stories: Detailed check-in workflow documentation
  • Sprint 2 review: docs/planning/sprint02_review.md

Test plan

  • Navigate to /admin/events as staff user
  • Verify events table displays with name, date/time, type, cohort
  • Test cohort filter dropdown filters events correctly
  • Verify "Add Event" button links to /admin/events/new (404 expected - AP-18)
  • Run npm run check - no TypeScript errors

Related

Closes AP-17

- Sprint 2 review documenting completed work (7 tickets, 12 points)
- AP-17 partial implementation: server-side load function for events page
- Documents story split: AP-17 reduced scope, AP-19 created for public events
- Document three check-in flows (registered with/without session, external)
- Add event types (cohort vs open) and security mechanisms
- Update US-1 with 4-digit check-in code requirement
- Document Airtable attendance record structure
- Display events with name, date/time, type, cohort
- Tailwind styling for table with hover states
- Handle missing/invalid values gracefully
- Show 'Open' badge for events without cohort
- Add listCohorts function to airtable client
- Fetch cohorts in load function (parallel with events)
- Add dropdown filter that updates URL params
- Display actual cohort names in table instead of IDs
- Sort cohorts reverse alphabetically (newest first)
- Filter uses cohort name to match Airtable formula
Links to /admin/events/new (AP-18)
- Add keys to each blocks
- Use resolve() for navigation
- Fix arrow function parentheses
- Add placeholder page for /admin/events/new
@AlexVOiceover AlexVOiceover merged commit f7decc0 into main Dec 29, 2025
2 checks passed
@AlexVOiceover AlexVOiceover deleted the feature/ap-17-admin-calendar-page branch January 7, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant